FILE(GLOB cc_sources *.cc)

add_executable(bboxd ${cc_sources})

target_link_libraries(bboxd buolacore)

install(TARGETS bboxd DESTINATION ${BIN_INSTALL_DIR})

if(BUOLA_PLATFORM_LINUX)
    configure_file(systemd/bboxd.socket bboxd.socket)
    configure_file(systemd/bboxd.service bboxd.service)
    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bboxd.socket ${CMAKE_CURRENT_BINARY_DIR}/bboxd.service
            DESTINATION ${LIB_INSTALL_DIR}/systemd/system)
endif()
